package com.xnew.configuration;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.context.event.ApplicationPreparedEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @Author yangcd
 * @Date 2020/10/14
 */
@Component
public class ApplicationStartupConfiguration implements ApplicationListener<ApplicationPreparedEvent> {

    private final Logger logger = LoggerFactory.getLogger(this.getClass());

    @Override
    public void onApplicationEvent(ApplicationPreparedEvent applicationPreparedEvent) {
        logger.info ("ApplicationStartupConfiguration onApplicationEvent....");

        
    }
}
